package com.turman.common.db

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query

@Dao
interface BookDao {
    @Query("select * from book")
    fun getAll():List<Book>?

    @Insert
    fun insert(book:Book)

    @Query("select * from book where bid = :id")
    fun queryById(id:Int):Book?
}